import request from "@/utils/request";

const DEPT_BASE_URL = "/mass";

export function recordListApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/record/list`,
    method: "post",
    data: data,
  });
}

export function numberListApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/number/list`,
    method: "post",
    data: data,
  });
}

export function groupListApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/group/list`,
    method: "post",
    data: data,
  });
}

export function addGroupApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/group/add`,
    method: "post",
    data: data,
  });
}

export function delGroupApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/group/del`,
    method: "post",
    data: data,
  });
}

export function importNumberApi(data, params) {
  return request({
    url: `${DEPT_BASE_URL}/number/import${params}`,
    method: "post",
    data: data,
  });
}

export function exportGroupApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/group/export`,
    method: "post",
    data: data,
  });
}
